package com.vg.service;

import java.util.ArrayList;

import org.json.JSONArray;
import org.json.JSONException;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;

import com.androidhive.jsonparsing.JSONParser;
import com.androidhive.jsonparsing.MyAdapter;
import com.vg.config.linkUrl;
import com.vg.spinner.Student;

public class ServiceGender extends Service{
	String obj;
	MyAdapter adapter;
	linkUrl mLinkUrl = new linkUrl();
	private ArrayList<Student> array_list = new ArrayList<Student>(); 
	String[] array_spgender={"Chọn Giới Tính","Nam","Nữ","Gay","Lesbian"};

	@Override
	public void onCreate() {
		// TODO Auto-generated method stub
		super.onCreate();
	}

	@Override
	public IBinder onBind(Intent intent) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int onStartCommand(Intent intent, int flags, int startId) {
		// TODO Auto-generated method stub
		return super.onStartCommand(intent, flags, startId);
	}
	
	public ArrayList<Student> dropSpinner() {
		for (int i = 0; i < array_spgender.length; i++) {
				Student student;
				student = new Student(array_spgender[i]);
				array_list.add(student);
			
		}
		return array_list;
	}
}
